home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / bench / x.txt / 000300_fdc@columbia.edu_Mon Jan 21 14:29:21 EST 2002.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  43 lines

  1. Article: 13135 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
  3. From: fdc@columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: Command line redirection with K95 ?
  6. Date: 21 Jan 2002 14:28:59 -0500
  7. Organization: Columbia University
  8. Lines: 26
  9. Message-ID: <a2hq5r$ai4$1@watsol.cc.columbia.edu>
  10. References: <3d44a7c4.0201211041.639becb6@posting.google.com>
  11. NNTP-Posting-Host: watsol.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1011641341 23160 128.59.39.139 (21 Jan 2002 19:29:01 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 21 Jan 2002 19:29:01 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13135
  16.  
  17. In article <3d44a7c4.0201211041.639becb6@posting.google.com>,
  18. Larry Mann <lvm@cowlitz.com> wrote:
  19. : Many years ago I wrote several Kermit scripts, on HP-UX, which were
  20. : run form the command line through standard input redirection and the
  21. : output was captured to file through redirection.
  22. :
  23. This is not a good way to write scripts, for more reasons than I can
  24. list here, but obviously you have discovered one of them.
  25.  
  26. : I now need to move
  27. : these scripts to a Windows 2000 Server but have found that redirection
  28. : does not appear to work with K95.
  29. :
  30. It doesn't read from "stdin", it reads from the keyboard.
  31.  
  32. : If appears simple to put the script
  33. : file name as the first param when calling K95 to specify the script to
  34. : run but have been unable to capture the remote systems response to
  35. : commands in a local file.
  36. : More explicitly, how would I capture the response to "rem dir" to a
  37. : local file for futher processing in a shell script?
  38. REM DIR foo.* > filename
  39.  
  40. - Frank
  41.